/*
 * ErrorHandler.hpp
 *
 *  Created on: Dec 10, 2013
 *      Author: paste
 */

#ifndef ERRORHANDLER_HPP_
#define ERRORHANDLER_HPP_

namespace saxpp
{
  template<class CH = char, class TRAITS = std::char_traits<CH> >
    class ErrorHandler
    {
      typename CH char_type;
      typename TRAITS char_traits;
      typename std::basic_string<char_type, char_traits> string_type;

      virtual
      ~ErrorHandler()
      {
      }

      virtual void
      error(const SAXParseException<char_type, char_traits> &/*exception*/)
      {
      }

      virtual void
      fatalError(const SAXParseException<char_type, char_traits> &exception)
      {
        throw exception;
      }

      virtual void
      warning(const SAXParseException<char_type, char_traits> &/*exception*/)
      {
      }
    };
}

#endif /* ERRORHANDLER_HPP_ */
